package org.zhaozhen.org.domain;

import lombok.Data;
import org.zhaozhen.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain{
        /*部门编号*/
        private String sn;
        /*部门名称*/
        private String name;
        /*暂时不用*/
        private String dirPath;
        private Long manager_id;
        /*部门状态 0 正常 ，-1 停用*/
        private Integer state;
        /*使用引用属性表明关系*/
        private Long parent_id;
        private Employee manager;
        private Department parent;
        //当前部门的子部门
        private List<Department> children = new ArrayList<>();




}
